package entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Ayase
 * @date 2020/8/9-20:41
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Phase {
    private String preStr;
    private String word;
    private String postStr;

    /**
     * @MethodName check
     * @Description TODO 检查答案是否正确
     * @Param [answer]
     * @Return boolean
     * @author Ayase
     * @date 8:23
     */
    public boolean check(String answer){
        System.out.println(answer+"/"+word);
        return word.equals(answer);
    }

    @Override
    public String toString(){
        return preStr+word+postStr;
    }
}
